package com.example.signdemo.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.time.LocalDate;

@Data
@TableName("a_user_sign_h")
public class UserSignH extends Model<UserSignH> {
    public final static int SIGN = 0; // 签到
    public final static int AGAIN_SIGN = 1;// 补签

    @TableId(type = IdType.ID_WORKER_STR)
    private String id;

    private long userId;

    private int signMonth;

    private long signRecord;

    private int signCount;

    private LocalDate lastSignDate;

    private int type;
}
